package cn.kgc.fallback;

import cn.kgc.pojo.DmItem;

import cn.kgc.client.RestDmItemClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;

@Component
@Slf4j
public class DmItemClientFallBack implements RestDmItemClient {


@Override
public DmItem getDmItemById(Long id)throws Exception{
    log.error("进入容错处理{}",id);
    return null;
}

@Override
public List<DmItem> getDmItemListByMap(Map<String,Object> param)throws Exception{
    log.info("出現异常了");
return null;
}

@Override
public Integer getDmItemCountByMap(Map
<String,Object> param)throws Exception{
return null;
}

@Override
public Integer qdtxAddDmItem(DmItem dmItem)throws Exception{
return null;
}

@Override
public Integer qdtxModifyDmItem(DmItem dmItem)throws Exception{
return null;
}

@Override
public Integer qdtxDelDmItem(Long id)throws Exception{
return null;
}

}
